#header-nav .header {
  height: 132px;
  background: #fff;
}

#header-nav .header .container {
  display: flex;
  align-items: center;
}

#header-nav .header .container h1 {
  width: 200px;
}

#header-nav .header .container h1 a {
  text-indent: -999px;
  display: block;
  height: 132px;
  width: 100%;
  text-indent: -9999px;
  background: url(http://erabbit.itheima.net/img/logo.0940ebb5.png) no-repeat center contain;
}

#header-nav .header .container ul {
  width: 820px;
  display: flex;
  justify-content: space-around;
  padding-left: 40px;
  position: relative;
  z-index: 999;
}

#header-nav .header .container ul li {
  margin-right: 40px;
  width: 38px;
  text-align: center;
}

#header-nav .header .container ul li:hover > a {
  color: #27ba9b;
  border-bottom: 1px solid #27ba9b;
}

#header-nav .header .container ul li a {
  font-size: 16px;
  line-height: 32px;
  height: 32px;
  display: inline-block;
  color: #333;
}

#header-nav .header .container ul li .headerover {
  height: 132px !important;
  background: #fff;
  opacity: 1 !important;
}

#header-nav .header .container ul li .headerNav {
  width: 1240px;
  background-color: #fff;
  position: absolute;
  left: -200px;
  top: 56px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all .2s .1s;
}

#header-nav .header .container ul li .headerNav ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0 70px;
  align-items: center;
  height: 132px;
}

#header-nav .header .container ul li .headerNav ul li {
  width: 110px;
  text-align: center;
}

#header-nav .header .container ul li .headerNav ul li img {
  width: 60px;
  height: 60px;
}

#header-nav .header .container ul li .headerNav ul li p {
  margin-top: 10px;
}

#header-nav .header .container ul li .headerNav ul li:hover a {
  color: #27ba9b;
  border-bottom: 0;
}

#header-nav .header .container .secrch {
  width: 170px;
  height: 32px;
  position: relative;
  border-bottom: 1px solid #e7e7e7;
  line-height: 32px;
}

#header-nav .header .container .secrch input {
  width: 140px;
  padding-left: 5px;
  color: #666;
  border: none;
}

#header-nav .header .container .cart {
  width: 50px;
  position: relative;
  z-index: 600;
}

#header-nav .header .container .cart > a {
  height: 32px;
  line-height: 32px;
  text-align: center;
  position: relative;
  display: block;
}

#header-nav .header .container .cart > a em {
  font-style: normal;
  position: absolute;
  right: 0;
  top: 0;
  padding: 1px 6px;
  line-height: 1;
  background: #e26237;
  color: #fff;
  font-size: 12px;
  border-radius: 10px;
  font-family: Arial;
}

#header-nav .header .container .cart:hover .layer {
  opacity: 1;
  transform: none;
}

#header-nav .header .container .cart .layer {
  opacity: 0;
  transition: all .4s .2s;
  transform: translateY(-200px) scaleY(0);
  width: 400px;
  height: 400px;
  position: absolute;
  top: 50px;
  right: 0;
  background: #fff;
  border-radius: 4px;
  padding-top: 10px;
}

#header-nav .header .container .cart .layer::before {
  content: "";
  position: absolute;
  right: 14px;
  top: -10px;
  width: 20px;
  height: 20px;
  background: #fff;
  transform: scaleX(0.6) rotate(45deg);
}

#header-nav .header .container .cart .layer .list {
  height: 310px;
  overflow: auto;
  padding: 0 10px;
}

#header-nav .header .container .cart .layer .list .item {
  border-bottom: 1px solid #f5f5f5;
  padding: 10px 0;
  position: relative;
}

#header-nav .header .container .cart .layer .list .item a {
  display: flex;
  align-items: center;
}

#header-nav .header .container .cart .layer .list .item a img {
  height: 80px;
  width: 80px;
}

#header-nav .header .container .cart .layer .list .item a .center {
  padding: 0 10px;
  width: 200px;
}

#header-nav .header .container .cart .layer .list .item a .center .name {
  font-size: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  overflow: hidden;
}

#header-nav .header .container .cart .layer .list .item a .center .attr {
  color: #999;
  padding-top: 5px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

#header-nav .header .container .cart .layer .list .item a .right {
  width: 100px;
  padding-right: 20px;
  text-align: center;
}

#header-nav .header .container .cart .layer .list .item a .right .price {
  font-size: 16px;
  color: #cf4444;
}

#header-nav .header .container .cart .layer .list .item a .right .count {
  color: #999;
  margin-top: 5px;
  font-size: 16px;
}

#header-nav .header .container .cart .layer .list .item .del {
  position: absolute;
  bottom: 38px;
  right: 0;
  opacity: 0;
  color: #666;
  transition: all .5s;
}

#header-nav .header .container .cart .layer .list .item:hover .del {
  opacity: 1;
  cursor: pointer;
}

#header-nav .header .container .cart .layer .foot {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 70px;
  width: 100%;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  background: #f8f8f8;
  align-items: center;
}

#header-nav .header .container .cart .layer .foot .left {
  padding-left: 10px;
  color: #999;
}

#header-nav .header .container .cart .layer .foot .left p:nth-of-type(2) {
  font-size: 18px;
  color: #cf4444;
}

#header-nav .header .container .cart .layer .foot button {
  border-color: #27ba9b;
  color: #27ba9b;
  background: #e6faf6;
  width: 180px;
  height: 50px;
  font-size: 16px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
}

#header-nav .show {
  transition: all .3s linear;
  transform: none;
  opacity: 1 !important;
  position: fixed !important;
}

#header-nav .heaerfixed {
  width: 100%;
  height: 80px;
  position: absolute;
  left: 0;
  z-index: 999;
  background-color: #fff;
  border-bottom: 1px solid #e4e4e4;
  transform: translateY(-100%);
  opacity: 0;
}

#header-nav .heaerfixed .container {
  display: flex;
  align-items: center;
}

#header-nav .heaerfixed .container h1 {
  width: 200px;
  height: 80px;
  background: url("http://erabbit.itheima.net/img/logo.0940ebb5.png") no-repeat right 2px;
  background-size: 160px auto;
}

#header-nav .heaerfixed .container ul {
  width: 820px;
  display: flex;
  justify-content: space-around;
  padding-left: 40px;
  position: relative;
  z-index: 999;
}

#header-nav .heaerfixed .container ul li {
  margin-right: 40px;
  width: 38px;
  text-align: center;
}

#header-nav .heaerfixed .container ul li a {
  font-size: 16px;
  line-height: 32px;
  height: 32px;
  display: inline-block;
}

#header-nav .heaerfixed .container ul li .headerover {
  height: 132px !important;
  background: #fff;
  opacity: 1 !important;
}

#header-nav .heaerfixed .container ul li .headerNav {
  width: 1240px;
  background-color: #fff;
  position: absolute;
  left: -200px;
  top: 56px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all .2s .1s;
}

#header-nav .heaerfixed .container ul li .headerNav ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0 70px;
  align-items: center;
  height: 132px;
}

#header-nav .heaerfixed .container ul li .headerNav ul li {
  width: 110px;
  text-align: center;
}

#header-nav .heaerfixed .container ul li .headerNav ul li img {
  width: 60px;
  height: 60px;
}

#header-nav .heaerfixed .container ul li .headerNav ul li p {
  margin-top: 10px;
}

#header-nav .heaerfixed .container .right {
  width: 220px;
  display: flex;
  text-align: center;
  padding-left: 40px;
  border-left: 2px solid #27ba9b;
}

#header-nav .heaerfixed .container .right a {
  width: 38px;
  margin-right: 40px;
  font-size: 16px;
  line-height: 1;
  background: #fff;
}
